import request from '@/utils/request'

// 获取订单属性维护列表 
export function orderForecasting(params) {
    return request({
        params,
        url: '/back/order-forecasting-attribute-maintenance/find',
        method: 'post'
    })
}

// 订单属性维护新增
export function baselineSave(params) {
    return request({
        url: '/back/order-forecasting-attribute-maintenance/save',
        method: 'POST',
        params
    })
}

// 订单属性维护修改
export function baselineUpd(params) {
    return request({
        url: '/back/order-forecasting-attribute-maintenance/upd',
        method: 'POST',
        params
    })
}

// 订单属性维护删除
export function maintenanceDel(params) {
    return request({
        url: '/back/order-forecasting-attribute-maintenance/del',
        method: 'POST',
        params
    })
}

// 查询订单属性维护的客户名称
export function findGroupCustomerNameAndProductType(params) {
    return request({
        url: '/back/order-forecasting-attribute-maintenance/findGroupCustomerNameAndProductType',
        method: 'POST',
        params
    })
}

// 查询人力基线维护列表
export function forecastingFind(params) {
    return request({
        url: '/back/order-forecasting-manpower-baseline/find',
        method: 'POST',
        params
    })
}

// 添加人力基线
export function forecastingSave(params) {
    return request({
        url: '/back/order-forecasting-manpower-baseline/save',
        method: 'POST',
        params
    })
}

// 修改人力基线
export function forecastingUpd(params) {
    return request({
        url: '/back/order-forecasting-manpower-baseline/upd',
        method: 'POST',
        params
    })
}

// 删除人力基线
export function forecastingDel(params) {
    return request({
        url: '/back/order-forecasting-manpower-baseline/del',
        method: 'POST',
        params
    })
}

// 订单预测列表查询
export function ForecastingList(params) {
    return request({
        url: '/back/order-forecasting/find',
        method: 'POST',
        params
    })
}

// 订单预测列表修改
export function ForecastingUpd(params) {
    return request({
        url: '/back/order-forecasting/upd',
        method: 'POST',
        params
    })
}

// 订单预测列表添加
export function ForecastingSave(params) {
    return request({
        url: '/back/order-forecasting/save',
        method: 'POST',
        params
    })
}

// 订单预测列表删除
export function ForecastingDel(params) {
    return request({
        url: '/back/order-forecasting/del',
        method: 'POST',
        params
    })
}

// 人力查询列表
export function manpowerDemandRed(params) {
    return request({
        url: '/back/order-forecasting/manpowerDemand_red',
        method: 'POST',
        params
    })
}

// 预测准确率查询列表
export function forecastAccuracy(params) {
    return request({
        url: 'back/order-forecasting/forecastAccuracy',
        method: 'POST',
        params
    })
}